package com.yuke.cloud.service.pmc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;

@Data
@ApiModel(value = "商品列表")
public class ProdSpecByCategoryDto {

    @Column(name = "spec_id")
    @ApiModelProperty(value="specId主键，自增")
    private Long specId;

    /**
     * 小图路径
     */
    @Column(name = "small_pic_uri")
    @ApiModelProperty(value="smallPicUri小图路径")
    private String smallPicUri;

    /**
     * 商品名称
     */
    @Column(name = "spec_name")
    @ApiModelProperty(value="specName商品名称")
    private String specName;

    @Column(name = "spec_code")
    @ApiModelProperty(value="specCode商品货号")
    private String specCode;

    /**
     * 商品描述
     */
    @Column(name = "description")
    @ApiModelProperty(value="description商品描述")
    private String description;

    @Column(name = "market_price")
    @ApiModelProperty(value="marketPrice市场售价，价格单位为分")
    private Integer marketPrice;

    @Column(name = "guidance_price")
    @ApiModelProperty(value="guidancePrice平台销售指导价，价格单位为分")
    private Integer guidancePrice;

    /**
     * 仓库进货价，价格单位为分
     */
    @Column(name = "stock_price")
    @ApiModelProperty(value="stockPrice仓库进货价，价格单位为分")
    private Integer stockPrice;

    /**
     * 排序，数值越小越靠前
     */
    @ApiModelProperty(value="sort排序，数值越小越靠前")
    private Integer sort;

    /**
     * 是否是新品，0：不是，1：是
     */
    @Column(name = "is_new")
    @ApiModelProperty(value="isNew是否是新品，0：不是，1：是")
    private Boolean isNew;

    /**
     * 是否为推荐商品，0：不是，1：是
     */
    @Column(name = "is_recommend")
    @ApiModelProperty(value="isRecommend是否为推荐商品，0：不是，1：是")
    private Boolean isRecommend;

    @Column(name = "create_time")
    @ApiModelProperty(value="createTime创建时间")
    private Date createTime;

    @Column(name = "update_time")
    @ApiModelProperty(value="updateTime记录更新时间")
    private Date updateTime;

    @Column(name = "is_enable")
    @ApiModelProperty(value="isEnable是否启用，0：不启用，1：启用")
    private Boolean isEnable;

    @ApiModelProperty(value="店铺对该商品的售卖权")
    private Byte goodsStatus;

    @ApiModelProperty(value="仓库的库存")
    private Integer stockCount;

    @ApiModelProperty(value = "商品的重量")
    private Integer weight;

    @ApiModelProperty(value="是否为厂家直销商品")
    private Boolean isFactory;

    @ApiModelProperty(value="是否支持分销，如果支持分销，则云顶商人（店铺）通过该商品分销后可获得佣金")
    private Boolean isRetail;

    @ApiModelProperty(value = "是否有搭赠活动")
    private Boolean hasTying;  // 0: 没有搭赠活动，1：有搭赠活动

    @ApiModelProperty(value = "搭赠商品id")
    private Long giftSpecId;

    @ApiModelProperty(value = "是否打折")
    private Integer hasDiscount;

    @ApiModelProperty(value = "是否满减")
    private Integer hasReduction;

    @ApiModelProperty(value = "是否返利")
    private Integer hasRebate;
}
